﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace CollegeShop.Repository.Win.BaseData
{
    public partial class F_Threshold : DevExpress.XtraEditors.XtraForm
    {
        public F_Threshold()
        {
            InitializeComponent();
            Init();
        }
        private void Init() {
            List<Title> titleList = new List<Title>();
            for (int i = 0; i < 100; i++)
            {
                Title title = new Title();
                title.id = i.ToString();
                title.title = i.ToString() + "你好";
                titleList.Add(title);                
            }
            gc_data.DataSource = titleList;

            gc_data.EmbeddedNavigator.Buttons.CancelEdit.Hint = "234234";
        }

        private void gc_data_EmbeddedNavigator_ButtonClick(object sender, NavigatorButtonClickEventArgs e)
        {
            XtraMessageBox.Show(e.Button.ButtonType.ToString());

            
        }
    }
    public class Title {
        public string id;
        public string title;
    }
}